package dk.beans;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import cn.afterturn.easypoi.excel.annotation.Excel;

public class subject {
@TableId(type = IdType.AUTO)
Integer id;
@Excel(name = "学科名称")
String name;
@TableField(fill = FieldFill.INSERT)
@Excel(name = "创建日期")
Date createtime;
@TableField(fill = FieldFill.INSERT_UPDATE)
@Excel(name = "更新日期")
Date updatetime;
public Integer getId() {
	return id;
}
public void setId(Integer id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public Date getCreatetime() {
	return createtime;
}
public void setCreatetime(Date createtime) {
	this.createtime = createtime;
}
public Date getUpdatetime() {
	return updatetime;
}
public void setUpdatetime(Date updatetime) {
	this.updatetime = updatetime;
}
public Integer getQuestionnum() {
	return questionnum;
}
public void setQuestionnum(Integer questionnum) {
	this.questionnum = questionnum;
}
public String getImg_url() {
	return img_url;
}
public void setImg_url(String img_url) {
	this.img_url = img_url;
}

@TableField(exist = false)
@Excel(name = "问题数量")
Integer questionnum;
@Excel(name = "图片链接")
String img_url;

public subject() {
	super();
}
public subject(Integer id, String name, Date createtime, Date updatetime, Integer questionnum, String img_url) {
	super();
	this.id = id;
	this.name = name;
	this.createtime = createtime;
	this.updatetime = updatetime;
	this.questionnum = questionnum;
	this.img_url = img_url;
	
}
@Override
public String toString() {
	return "subject [id=" + id + ", name=" + name + ", createtime=" + createtime + ", updatetime=" + updatetime
			+ ", questionnum=" + questionnum + ", img_url=" + img_url  + "]";
}
}
